import { httpGet, httpPost, httpDelete, httpPut } from '@/http'
import { services } from '@/config'

export const getPage = params => httpPost(`${services.personnelService}bookAccept/page`, params)

export const save = data => httpPost(`${services.personnelService}bookAccept`, data)

export const load = id => httpGet(`${services.personnelService}bookAccept/${id}`)

export const create = () => httpGet(`${services.personnelService}bookAccept/create`)

export const delObj = id => httpDelete(`${services.personnelService}bookAccept/${id}`)

export const update = data => httpPut(`${services.personnelService}bookAccept`, data)

export const batchDelete = ids => httpDelete(`${services.personnelService}bookAccept/batchDelete`, ids, null, false)
